import axios from 'axios'

export default {

  async getUserType() {
    let result = await axios({
      url: '/api/userlogin/gettype',
      method: 'post'
    })
    return result
  },

  async login(data) {
    let result = await axios({
      url: '/api/userlogin/login',
      method: 'post',
      data: data
    })
    return result;
  }

}
